<%@page import="java.lang.ProcessBuilder.Redirect"%>
<%@page import="mysql.Login"%>
<%@page import="mysql.MemberQuery"%>
<%@page import="db.MysqlConnect"%>
<%@page import="java.sql.Connection"%>
<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>

 <%
  		String id = request.getParameter("id");
  	 	String pw = request.getParameter("pw");
  	 	Connection con = MysqlConnect.getConnection();
  		boolean check=Login.login(con, id, pw, session);
  		if(check)
  		{
  			response.sendRedirect("SuccessLogin.jsp");
  		
  				
  		}else if(check==false){
  			response.sendRedirect("FailLogin.jsp");
  		
  		}
 %>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>

</body>
</html>